package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysAttendance;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysAttendanceDao {
    List<SysAttendance> selectAttendance();

    @Select("select * from attendance where id=#{id}")
    SysAttendance selectById(Long id);

    @Delete("delete from attendance where id=#{id}")
    int deleteById(Integer id);

    int updateAttendance(SysAttendance attendance);

    int insertAttendance(SysAttendance attendance);
}
